package net.sk.china.city.talk.service.order;

import com.baomidou.mybatisplus.extension.service.IService;
import net.sk.china.city.talk.model.order.StoreCart;

import java.util.List;

/**
 * StoreCartService 接口
 * +----------------------------------------------------------------------
 * | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2018-2024 聊来All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * +----------------------------------------------------------------------
 * | @Author: 聊来 <18970881148@qq.com>
 * +----------------------------------------------------------------------
 * | DateTime: 2024/6/4 11:32
 * +----------------------------------------------------------------------
 */
public interface StoreCartService extends IService<StoreCart> {

    /**
     * 检测商品是否有效 更新购物车商品状态
     * @param productId 商品id
     * @return {@code Boolean}
     */
    Boolean productStatusNotEnable(Integer productId);

    /**
     * 删除商品对应的购物车
     * @param productId 商品id
     * @return {@code Boolean}
     */
    Boolean productDelete(Integer productId);

    /**
     * 删除购物车
     * @param ids 待删除id
     * @return {@code Boolean}
     */
    Boolean deleteCartByIds(List<Long> ids);

    /**
     * 对应sku购物车生效
     * @param skuIdList skuIdList
     * @return {@code List<Integer>}
     */
    Boolean productStatusNoEnable(List<Integer> skuIdList);
}
